import {useState,useEffect} from 'react';

function useMyHook() {
    const [num,setNum] = useState('0')
   useEffect(()=>{
       document.title = num
       console.log('useEffect',num)
   },[num])
    return setNum
}

export default useMyHook;